package com.zhongyouyun.other.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;


@ApiModel(value = "分页查询对象", description = "分页查询对象")
@Data
public class PageRequest {
    @ApiModelProperty(value = "第几页")
    private int pageNum;//第几页
    @ApiModelProperty(value = "每页查几个")
    private int pageSize;//每页查几个
    @ApiModelProperty(value = "查询ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;//id
    @ApiModelProperty(value = "状态")
    private String state;
    @ApiModelProperty(value = "查询条件")
    Map<String, Object> columnFilters;//查询条件
}
